import request from '@/utils/request'

// 查询配额列表
export function listQuota(query) {
  return request({
    url: '/system/quota/list',
    method: 'get',
    params: query
  })
}

// 查询配额详细
export function getQuota(id) {
  return request({
    url: '/system/quota/' + id,
    method: 'get'
  })
}

// 新增配额
export function addQuota(data) {
  return request({
    url: '/system/quota',
    method: 'post',
    data: data
  })
}

// 修改配额
export function updateQuota(data) {
  return request({
    url: '/system/quota',
    method: 'put',
    data: data
  })
}

// 删除配额
export function delQuota(id) {
  return request({
    url: '/system/quota/' + id,
    method: 'delete'
  })
}
